<form method="post" id="editProductionOrder" action="${rc.getContextPath()}/manage/productOrder/saveProductOrder" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone)">
    <div class="pageContent">
    <div class="pageFormContent">
        <input type="hidden" name="navTabId" value="${navTabId!''}" />
        <fieldset>
        <dl>
            <dt><@label key='productOrderNum.C,colon'>生产订单编号：</@label></dt>
            <dd><input type="text" name="productOrderNum" class="required" value="${productOrder.productOrderNum!''}" readonly="readonly"/></dd>
        </dl>
        <dl>
            <dt><@label key='orderType.C,colon'>订单类型：</@label></dt>
            <dd><select name="orderTypeCode">
                    <#if orderTypes??>
                        <#list orderTypes as orderType>
                            <option value="${orderType.orderTypeCode!''}" <#if productOrder.orderTypeCode?? && productOrder.orderTypeCode == orderType.orderTypeCode> selected</#if> >${orderType.orderTypeText!''}</option>
                        </#list>
                    </#if>
                </select>
            </dd>
        </dl>
        <dl>
            <dt><@label key='orderStatusECode.C,colon'>订单状态：</@label></dt>
            <dd><select name="statuseCode" disabled="disabled">
                    <#if orderStatusECode??>
                        <#list orderStatusECode as ecode>
                            <option value="${ecode.eCode!''}" <#if productOrder.statuseCode?? && productOrder.statuseCode == ecode.eCode> selected</#if> >${ecode.eCodeText!''}</option>
                        </#list>
                    </#if>
                </select>
                <input name="statuseCode" type="hidden" value="${productOrder.statuseCode!''}"/>
            </dd>
            </dd>
        </dl>
        <dl  class="notnormal">
            <dt><@label key='materialCode.C,colon'>物料编号：</@label></dt>
            <dd>
                <input class="required look" id="materialLookup.materialCode" name="materialCode" type="text" postField="materialCode" value="${productOrder.materialCode!''}" suggestFields="materialCode,materialText" 
                suggestUrl="${rc.getContextPath()}/manage/material/componentSuggest" lookupGroup="materialLookup" remote="${rc.getContextPath()}/manage/material/validateMaterial" warn="<@label key='materialCodeNotExists.M'>物料编号不存在</@label>"/>
                <a class="btnLook" href="${rc.getContextPath()}/manage/material/componentLookUp?lookupType=radio" rel="materialLookup_dialog" title="<@label key='select.C,materialCode.C'>选择物料</@label>" lookupGroup="materialLookup" ></a>
            </dd>
        </dl>
        <dl>
            <dt><@label key='materialText.C,colon'>物料名称：</@label></dt>
            <dd><input id="materialLookup.materialText" name="materialText" type="text" value="${productOrder.materialText!''}" readonly="readonly"/></dd>
        </dl>
        <dl>
            <dt><@label key='plannedQuantity.C,colon'>计划数量</@label></dt>
            <dd><input type="text" name="plannedQuantity" value="${productOrder.plannedQuantity!''}" min="1" maxlength="15" class="required number"/></dd>
        </dl>
        <dl  class="notnormal">
            <dt><@label key='requirementDate.C,colon'>需求日期：</@label></dt>
            <dd><input type="text" name="requirementDate" value="${(productOrder.requirementDate?string('yyyy-MM-dd'))?if_exists}" readonly class="required date"/>
                <a class="inputDateButton" href="javascript:;">选择</a>
            </dd>
        </dl>
        <dl>
            <dt><@label key='productionlotNum.C,colon'>生产批次号：</@label></dt>
            <dd><input type="text" name="productionlotNum" value="${productOrder.productionlotNum!''}" maxlength="40"/></dd>
        </dl>
        <dl  class="notnormal">
            <dt><@label key='plannedstartDateTime.C,colon'>计划开始时间：</@label></dt>
            <dd><input type="text" name="plannedstartDateTime" class="required date" max_Date="{plannedendDateTime}" readonly value="${(productOrder.plannedstartDateTime?string('yyyy-MM-dd HH:mm:ss'))?if_exists}"
            max_date="plannedendDateTime" dateFmt="yyyy-MM-dd HH:mm:ss" />
            <a class="inputDateButton" href="javascript:;">选择</a>
            </dd>
        </dl>
        <dl  class="notnormal">
            <dt><@label key='plannedendDateTime.C,colon'>计划结束时间：</@label></dt>
            <dd><input type="text" name="plannedendDateTime" class="required date" min_Date="{plannedstartDateTime}" readonly value="${(productOrder.plannedendDateTime?string('yyyy-MM-dd HH:mm:ss'))?if_exists}"
            min_date="plannedstartDateTime" dateFmt="yyyy-MM-dd HH:mm:ss"/>
            <a class="inputDateButton" href="javascript:;">选择</a>
            </dd>
        </dl>
        <dl>
            <dt><@label key='customer.C,colon'>客户：</@label></dt>
            <dd><input type="text" name="customer" value="${productOrder.customer!''}" maxlength="40"/></dd>
        </dl>
        <dl>
            <dt><@label key='customerOrder.C,colon'>客户订单：</@label></dt>
            <dd><input type="text" name="customerOrder" value="${productOrder.customerOrder!''}" maxlength="40"/></dd>
        </dl>
        <dl>
            <dt><@label key='priority.C,colon'>优先级：</@label></dt>
            <dd><input type="text" name="priority" value="${productOrder.priority!''}" class="digits"  maxlength="5"/></dd>
        </dl>
        <dl>
            <dd><span style="color:red" id="processMsgInfo"></span></dd>
        </dl>
        </fieldset>
    </div>
    <#if productOrder??> <#assign createInfo = productOrder/> 
                        <#include "/common/createInfo.html"> </#if>    
    <div class="formBar">
        <ul>
            <li><div class="buttonActive"><div class="buttonContent"><button type="submit">保存</button></div></div></li>
            <li>
                <div class="buttonActiveGrey"><div class="buttonContent"><button type="button" class="close">取消</button></div></div>
            </li>
        </ul>
    </div>
    </div>
</form>
